﻿@model NTQOnlineExamFrontend.Models.ProfileViewModel

@{
    ViewBag.Title = "Profile";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="col-sm-8">
    @* <h3 class="headline first-child"><span>Profile</span></h3>*@
    @using (Html.BeginForm("Profile", "Account", FormMethod.Post, new { model = Model, id = "profile" }))
    {
        @Html.AntiForgeryToken()    
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.UserId)
        @Html.HiddenFor(model => model.UserName)
        <div class="form-group">
            <div class="row">
                <div class="col-sm-6">
                    @Html.LabelFor(model => model.FirstName)
                    @Html.TextBoxFor(model => model.FirstName, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.FirstName)

                </div>
                <div class="col-sm-6">
                    @Html.LabelFor(model => model.LastName)
                    @Html.TextBoxFor(model => model.LastName, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.LastName)
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="row">
                <div class="col-sm-12">
                    @Html.LabelFor(model => model.Email)
                    @Html.TextBoxFor(model => model.Email, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Email)
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="row">
                <div class="col-sm-6">
                    @Html.LabelFor(model => model.BillingAddress)
                    @Html.TextBoxFor(model => model.BillingAddress, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.BillingAddress)
                </div>
                <div class="col-sm-6">
                    @Html.LabelFor(model => model.BillingZipCode)
                    @Html.TextBoxFor(model => model.BillingZipCode, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.BillingZipCode)

                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="row">
                <div class="col-sm-6">
                    @Html.LabelFor(model => model.Phone)
                    @Html.TextBoxFor(model => model.Phone, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Phone)

                </div>
                <div class="col-sm-6">
                    @Html.LabelFor(model => model.BillingPOBox)
                    @Html.TextBoxFor(model => model.BillingPOBox, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.BillingPOBox)
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="row">
                <div class="col-sm-6">
                    @Html.LabelFor(model => model.BillingCity)
                    @Html.TextBoxFor(model => model.BillingCity, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.BillingCity)

                </div>
                <div class="col-sm-6">
                    @Html.LabelFor(model => model.BillingCountry)
                    @Html.TextBoxFor(model => model.BillingCountry, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.BillingCountry)
                </div>
            </div>
        </div>
        <div class="controls">
            <button class="btn btn-lg btn-red" type="submit">Update Profile</button>
        </div>
    }
</div>
